package com.jinsilu.freight.http.request;

import com.hjq.http.annotation.HttpIgnore;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

/**
 * author : Android 轮子哥
 * github : https://github.com/getActivity/AndroidProject
 * time   : 2019/12/07
 * desc   : 获取验证码
 */
public final class GetCodeApi implements IRequestApi, IRequestType {

    @Override
    public String getApi() {
        return "api/sms/code";
    }

    /**
     * 手机号
     */
    private String phone;

    public GetCodeApi setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    @HttpIgnore
    private String token;

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }
}